package ge.devfest.hackathon.gg.json;

import java.io.IOException;
import java.io.InputStream;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;

public class PreGingerbreadJSONParser extends JSONParser {

        public InputStream getInputStream(String url) throws IOException {
                DefaultHttpClient client = new DefaultHttpClient();
                HttpGet get = new HttpGet(url);
                HttpResponse response = client.execute(get);
                HttpEntity entity = response.getEntity();
                return entity.getContent();
        }

        @Override
        public void release() {
        	// no op
        }
       
       
}